file(GLOB_RECURSE commonSrc
    "${PROJECT_SOURCE_DIR}/Common/*.c"
    "${PROJECT_SOURCE_DIR}/Common/*.cpp")  # 递归搜索文件

file(GLOB_RECURSE systemCode "${platformDir}/*.c")
list(APPEND commonSrc ${startupFile} ${systemCode})
add_library(common OBJECT ${commonSrc})
target_link_libraries(common ${staticLibGroup})
target_include_directories(
    common PUBLIC
    ${PROJECT_SOURCE_DIR}/Common/app/inc
    ${PROJECT_SOURCE_DIR}/Common/dev/inc
    ${PROJECT_SOURCE_DIR}/Common/drv/inc
)
